package com.endoc.news.fragment.base;

import android.view.View;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

public class BaseHolder  extends RecyclerView.ViewHolder {

    IBaseCustomView<BaseViewModel> mItemView;
    public BaseHolder(@NonNull IBaseCustomView<BaseViewModel> itemView) {
        super((View) itemView);
        mItemView = itemView;
    }

    public void bindViewModel(BaseViewModel viewModel){
            mItemView.setData(viewModel);
    }

}
